package com.yylany.bo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * Description: 用于数据库的数据封装
 *
 * @author <a href="mailto:17777502615@163.com">yaoyonglong</a>
 * @date 2019/1/2
 * @since 1.0.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class GoodsBOBase  {

    private Integer commentCount;
    private Integer commentLevel;
    private String description;
    private String aftersale;
    private Integer cat1Id;
    private Integer cat2Id;
    private Integer cat3Id;
    /**
     * sku id
     */
    private Integer skuid;

    /**
     * 存储数量
     */
    private Integer stock;

    /**
     * spu id
     */
    private Integer spuid;

    /**
     * 商品标题
     */
    private String goodsName;

    /**
     * 商品的图片，多个图片以‘,’分割
     */
    private String images;

    /**
     * 销售价格，单位为分
     */
    private Double price;

    private String specList;

    /**
     * sku的特有规格参数键值对，json格式，反序列化时请使用linkedHashMap，保证有序
     */
    private String specListCode;

    /**
     * 添加时间
     */
    private Date onSaleDate;

    /**
     * 最后修改时间
     */
    private Date updatedAt;

}
